package com.ys.entity.eKnowAi;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_eknow].[dbo].EKnow_Template", catalog="Id")
public class EKnowTemplate extends BaseEntity<EKnowTemplate> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TemplateName", nameJava="templateName", typeDataBase="varchar")
	private String templateName;
	@YsField(nameDataBase="TemplateContent", nameJava="templateContent", typeDataBase="varchar")
	private String templateContent;
	@YsField(nameDataBase="SceneId", nameJava="sceneId", typeDataBase="bigint")
	private Long sceneId;
	@YsField(nameDataBase="Sort", nameJava="sort", typeDataBase="int")
	private Integer sort;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="TypeId", nameJava="typeId", typeDataBase="bigint")
	private Long typeId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public EKnowTemplate setId(Long id) {
		this.id = id;
		return this;
	}
	public String getTemplateName() {
		return templateName;
	}
	public EKnowTemplate setTemplateName(String templateName) {
		this.templateName = templateName;
		return this;
	}
	public String getTemplateContent() {
		return templateContent;
	}
	public EKnowTemplate setTemplateContent(String templateContent) {
		this.templateContent = templateContent;
		return this;
	}
	public Long getSceneId() {
		return sceneId;
	}
	public EKnowTemplate setSceneId(Long sceneId) {
		this.sceneId = sceneId;
		return this;
	}
	public Integer getSort() {
		return sort;
	}
	public EKnowTemplate setSort(Integer sort) {
		this.sort = sort;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public EKnowTemplate setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public Long getTypeId() {
		return typeId;
	}
	public EKnowTemplate setTypeId(Long typeId) {
		this.typeId = typeId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public EKnowTemplate setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public EKnowTemplate setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public EKnowTemplate setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static EKnowTemplate eKnowTemplate(
		String templateName,
		String templateContent,
		Long sceneId,
		Integer sort,
		String userId,
		Long typeId,
		Integer status
			) {
		EKnowTemplate entity = new EKnowTemplate();
		entity.setTemplateName(templateName);
		entity.setTemplateContent(templateContent);
		entity.setSceneId(sceneId);
		entity.setSort(sort);
		entity.setUserId(userId);
		entity.setTypeId(typeId);
		entity.setStatus(status);
		return entity;
	}
}